//
// Created by Administrator on 2020/11/10.
//

#include "l1Ul.h"
#include "../../../../o5gran/lcore/include/l1ApiMsg.h"

void UE_L1_UL_SendDataToRan(S_UeL1UeInst *pUeInst)
{
    int32_t rc;
    S_UeCommMsgHdr commMsgHdr;

    commMsgHdr.type = UE_L1_API_MSG_BUTT;
    commMsgHdr.size = sizeof(commMsgHdr);
    VRB_PUT(rc, pUeInst->pUeRanQue, &commMsgHdr, sizeof(commMsgHdr));
//    CSP_LOG_INF(UE_MD_L1_UL, "UE_L1_UL_Process() commMsgHdr.type = %#x\n", commMsgHdr.type);
}

void UE_L1_UL_Process(void)
{
    uint32_t ueLoop;
    S_UeL1UeInst *pUeInst;

    for (ueLoop = 0; ueLoop < UE_UE_INST_NUM_MAX; ueLoop++)
    {
        pUeInst = &gpUeL1Context->ueInst[ueLoop];
        IF_CONTINUE(==, FALSE, pUeInst->inUse, NO_LOG_MESSAGE);
        UE_L1_UL_SendDataToRan(pUeInst);
    }
}
